.carousel {
  // 解决轮播图区域, 滑动时报错的问题
  touch-action: none;
  position: relative;

  .search-box {
    box-sizing: border-box;
    padding: 0 10px;
    position: absolute;
    top: 25px;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    .search-form {
      flex: 1;
      margin: 0 10px;
      padding: 5px;
      border-radius: 3px;
      background-color: #fff;
      box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
      .search-input {
        border-left: solid 1px #787d82;
        margin-left: 5px;
        .icon-seach {
          vertical-align: middle;
          padding: 0 5px;
        }
        span {
          font-size: 12px;
          color: #787d82;
        }
      }
    }
    .icon-map {
      font-size: 28px;
      color: #fff;
    }
  }
}

//导航模块样式
.nav {
  padding: 10px 0;
  img {
    width: 48px;
    height: 48px;
  }
  p {
    margin-top: 7px;
  }
  .am-flexbox {
    text-align: center;
  }
}

//租房小组模块样式
.group {
  background-color: #f6f5f6;
  padding: 5px 10px;
  &-title {
    position: relative;
    padding: 15px 0px;
    padding-left: 5px;
    font-size: 15px;
    h3 {
      font-size: 16px;
    }
    .more {
      position: absolute;
      right: 0;
      top: 15px;
      font-size: 14px;
      color: #787d82;
      font-weight: normal;
    }
  }
  &-content {
    img {
      width: 55px;
    }
    .am-grid {
      > .am-flexbox {
        margin-bottom: 10px;

        .am-flexbox-item:first-child {
          margin-right: 10px;
        }
        .am-flexbox-item {
          background-color: #fff;
        }
        // 设置文字的样式
        .desc p.title {
          font-weight: 700;
          margin-bottom: 5px;
          font-size: 13px;
        }
        .desc span.info {
          font-size: 12px;
          color: #999;
        }
      }

      .am-flexbox {
        background-color: transparent;
      }
    }
  }
}

//最新资讯样式
.news {
  background-color: #fff;
  overflow: hidden;
  padding: 0 15px;
  margin-top: 15px;
  .news-title {
    position: relative;
    padding: 15px 0px;
    font-size: 15px;
  }
  .news-item {
    height: 120px;
    padding: 10px 10px 10px 0;
    border-bottom: 1px solid #ccc;
    &:last-child {
      border-bottom: none;
    }
    .imgwrap {
      float: left;
      height: 100px;
      width: 100px;
      img {
        width: 100%;
        height: 100%;
        display: block;
      }
    }
    .content {
      overflow: hidden;
      height: 100%;
      padding-left: 12px;
      .title {
        margin-bottom: 15px;
        font-size: 14px;
      }
      .info {
        width: 100%;
        color: #999;
        font-size: 12px;
      }
    }
  }
}
